package com.jn.erp.wechat.common.api.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * <pre>
 *
 * </pre>
 *
 * @author sunjiyong
 * @since 2024/9/10 19:53
 */

@Data
@TableName("t_wx_menu")
public class WxMenu implements Serializable {


    @TableId
    private Long menuId;

    private String title;

    private Long parentId;

    private Integer orderNum;

    private String icon;

    private String status;

    private String routeName;

    //菜单类型（E 员工 S 家长）
    private String menuType;

    private String path;
    //选中的icon
    private String component;

    /** 子菜单 */
    @TableField(exist = false)
    private List<WxMenu> children = new ArrayList<WxMenu>();

    //包含的用户角色id
    @TableField(exist = false)
    private String roles;


}
